﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Web;
//using System.Web.UI;
//using System.Web.UI.WebControls;
//using Enterprise.Infrastructure;
//using Enterprise.Service.Doc;
//using Enterprise.Model.Doc;

//namespace Enterprise.UI.Web.Modules.Doc
//{
//    public partial class ArticleDelete : System.Web.UI.Page
//    {        
//        protected void Page_Load(object sender, EventArgs e)
//        {
//            string id = (string)Enterprise.Infrastructure.Utility.sink("id", Infrastructure.Utility.MethodType.Get, 0, 0, Infrastructure.Utility.DataType.Str);
//            Enterprise.Service.Doc.DocArticleService service = new DocArticleService();
//            //先判断有没有发布权限
//            Enterprise.Model.Doc.DocArticleEntity model = new DocArticleEntity();            
//            model = service.GetModel(id.ToDecimal().Value);

//            if (model != null)
//            {
//                Enterprise.Service.Doc.DocClassService dcs = new DocClassService();
//                if (dcs.AllowPubInClass(model.CLASSID.Value, Utility.Get_UserId))
//                {
//                    if (service.DeleteList(id))
//                    {
//                        Enterprise.Infrastructure.Utility.ShowMsg(this.Page, "提示", "操作成功", "ArticleManager.aspx");
//                    }
//                    else
//                        Enterprise.Infrastructure.Utility.ShowMsg(this.Page, "提示", "操作失败", "ArticleManager.aspx");
//                }
//                else
//                {
//                    Enterprise.Infrastructure.Utility.ShowMsg(this.Page, "提示", "没有授权", "ArticleManager.aspx");
//                }
//            }
//            else
//            {
//                Enterprise.Infrastructure.Utility.ShowMsg(this.Page, "提示", "错误的参数", "ArticleManager.aspx");
//            }

            
//        }
//    }
//}